package com.example.Housekeeping.service.impl;

import com.example.Housekeeping.domain.HouseKeeper;
import com.example.Housekeeping.domain.HouseOrder;
import com.example.Housekeeping.domain.Vo.HouseKeeperVo;
import com.example.Housekeeping.domain.Vo.HouseOrderVo;
import com.example.Housekeeping.mapper.HouseKeeperMapper;
import com.example.Housekeeping.mapper.HouseOrderMapper;
import com.example.Housekeeping.service.IHouseKeeperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class HouseKeeperServiceImpl implements IHouseKeeperService {
    @Autowired
    private HouseKeeperMapper houseKeeperMapper;

    /**
     * 查询家政人员
     *
     * @param houseKeeper
     * @return
     */
    @Override
    public List<HouseKeeperVo> selectHouseKeeper(HouseKeeper houseKeeper) {
        return houseKeeperMapper.selectHouseKeeper(houseKeeper);

    }

    /**
     * 新增家政员工
     *
     * @param houseKeeper
     */

    @Override
    public  void addHouseKeeper(HouseKeeper houseKeeper) {
        houseKeeperMapper.addHouseKeeper(houseKeeper);
    }

    /**
     * 根据id查询员工信息
     *
     * @param houseKeeper
     */

    @Override
    public List<HouseKeeperVo> getHouseKeeperById(HouseKeeper houseKeeper) {
        return houseKeeperMapper.getHouseKeeperById(houseKeeper);
    }
    /**
     * 修改员工信息
     *
     * @param houseKeeper
     */
    @Override
    public void updateHouseKeeperById(HouseKeeper houseKeeper) {
        houseKeeperMapper.updateHouseKeeperById(houseKeeper);
    }

    /**
     * 删除员工信息
     *
     * @param houseKeeper
     */
    @Override
    public void delHouseKeeperById(String houseKeeper) {
        houseKeeperMapper.delHouseKeeperById(houseKeeper);
    }
}
